﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyMvc.BLL;
using MyMvc.IDAL;
using MyMvc.Model.Models;

namespace MyMvc.BLL
{

    public partial class UserService : BaseService<User>, IBLL.IUserService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.UserRepository;
        }
    }

    public partial class ArticleService : BaseService<Article>, IBLL.IArticleService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.ArticleRepository;
        }
    }

    public partial class AboutArticleService : BaseService<AboutArticle>, IBLL.IAboutArticleService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.AboutArticleRepository;
        }
    }

    public partial class FileService : BaseService<File>, IBLL.IFileService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.FileRepository;
        }
    }

    public partial class AddFileService : BaseService<AddFile>, IBLL.IAddFileService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.AddFileRepository;
        }
    }

    public partial class NoteService : BaseService<Note>, IBLL.INoteService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.NoteRepository;
        }
    }

    public partial class RelationService : BaseService<Relation>, IBLL.IRelationService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.RelationRepository;
        }
    }

    public partial class CategoryTypeService : BaseService<CategoryType>, IBLL.ICategoryTypeService
    {
        public override void SetCurrentRepository()
        {
            CurrentRepository = _dbSession.CategoryTypeRepository;
        }
    }

    //public partial class ClassInfoService : BaseService<ClassInfo>, IBLL.IClassInfoService
    //{
    //    public override void SetCurrentRepository()
    //    {
    //        CurrentRepository = _dbSession.ClassInfoRepository;
    //    }
    //}
    //public partial class OfficeService : BaseService<Office>, IBLL.IOfficeService
    //{
    //    public override void SetCurrentRepository()
    //    {
    //        CurrentRepository = _dbSession.OfficeRepository;
    //    }
    //}
}